package com.teadent.service;

import com.teadent.bean.Person;
import com.teadent.bean.StudentTask;
import com.teadent.bean.Task;
import com.teadent.dao.TeacherDao;
import com.teadent.dao.TeacherDaoImpl;

import java.util.List;

public class TeacherServiceImpl implements TeacherService{
    TeacherDao td=new TeacherDaoImpl();
    @Override
    public List<Person> getAllStudent()
    { return td.getAllStudent(); }
    public List<Task> getAllTask()
    { return td.getAllTask(); }
    @Override
    public List<StudentTask> getTaskDetail(String taskAccount)
    { return td.getTaskDetail(taskAccount); }
    @Override
    public void delThisStu(String userId)
    { td.delThisStu(userId); }
    @Override
    public void addTask(Task task)
    { td.addTask(task); }
    @Override
    public void delThisTask(String taskAccount)
    { td.delThisTask(taskAccount); }

    @Override
    public Task getTask(String taskAccount) {
        return td.getTask(taskAccount);
    }

    @Override
    public void fixTask(Task task,String taskAccount) {
        td.fixTask(task,taskAccount);
    }

    @Override
    public void addStudent(Person person0) {
        td.addStudent(person0);
    }

}
